package com.xhs.dto.request;

import com.xhs.entity.Content;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * 内容请求DTO
 */
@Data
public class ContentRequest {
    
    @NotBlank(message = "标题不能为空")
    @Size(max = 200, message = "标题长度不能超过200个字符")
    private String title;
    
    @Size(max = 1000, message = "描述长度不能超过1000个字符")
    private String description;
    
    @NotNull(message = "内容类型不能为空")
    private Content.ContentType type;
    
    private String tags;
    
    private Boolean published = true;
    
    private Integer duration; // 视频时长（秒）
} 